package io.renren.modules.sys.form;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;

@Data
@ApiModel(value = "自定义的注册表单")
public class MyRegisterForm {

    @ApiModelProperty(value = "用户名")
    @NotBlank(message="用户名不能为空")
    private String username;

    @ApiModelProperty(value = "邮箱")
    @NotBlank(message="邮箱不能为空")
    private String email;

    @ApiModelProperty(value = "手机号")
    @NotBlank(message="手机号不能为空")
    private String mobile;

    @ApiModelProperty(value = "密码")
    @NotBlank(message="密码不能为空")
    private String password;

    @ApiModelProperty(value = "重复密码")
    @NotBlank(message="重复密码不能为空")
    private String repassword;

    @ApiModelProperty(value = "1企业用户,0个人用户")
    @NotBlank(message="用户身份状态不能为空")
    private String companyOrPerson;


}
